
<?php
use Mirage\Base\Html;
    $form = new TaskForm();
    $form->setModel(TaskModel::model());
    echo $form->beginForm();
?>

<table>
    <tr>
        <td><?php echo $form->dateLabel;  ?></td><td><?php echo $form->date; ?></td>
    </tr>
    <tr>
        <td><?php echo $form->taskLabel; ?></td><td><?php echo $form->task; ?></td>
    </tr>
    <tr>
        <td><?php echo $form->statusLabel; ?></td><td><?php echo $form->status; ?></td>
    </tr>    
</table>
<?php echo $form->endForm(); ?>
<script>
$(document).ready(function(){
    $('#TaskModel_date').datepicker({dateFormat:'yy-mm-dd',changeMonth:true});
})
</script>
